package com.ly.hotel.broadcast;

import android.content.BroadcastReceiver; 
import android.content.Context;
import android.content.Intent;
import android.util.Log;

public class ScreenOnOffReceiver extends BroadcastReceiver{
    @Override  
    public void onReceive(Context context, Intent intent){  
    	
        if(intent.getAction() == Intent.ACTION_SCREEN_OFF){
        	Log.i("screen", "锁屏事件");  
        }else{
        	Log.i("screen", "开屏事件");  
        }
//        EventBus.getDefault().post(new AndroidBootCompletedEvent()); 
    }  
}
